﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Sections.aspx.cs" Inherits="EM.admin.Menu.Sections" ValidateRequest="false"   %>

<%@ Register Src="~/Common/PageName.ascx" TagName="PageName" TagPrefix="uc1" %>
<%@ Register Src="~/Common/SectionName.ascx" TagName="SectionName" TagPrefix="uc3" %>
<%@ Register Src="~/Common/Header.ascx" TagName="Header" TagPrefix="uc2" %>
<%@ Register Src="~/Common/Footer.ascx" TagName="Footer" TagPrefix="uc4" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link  runat="server" id="linkCss" rel="stylesheet" href="~/css/master.css" type="text/css"/>
    <link  runat="server" id="linkcssbuttons" rel="stylesheet" href="~/css/buttons.css" type="text/css"/>
</head>

<body >
    <form id="form1" runat="server">
        <table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
            <tr>
                <td class="TdMainContent" valign="top">
                    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td class="TdPageName" colspan="2"><uc1:PageName id="ucPageName" PAGEID="31" runat="server"></uc1:PageName></td>
                        </tr>
                        <tr>
                            <td id="TdMainRight" valign="top">
                                <div id="ContentRight">
                                    <div id="GrdDivMaster" runat="server" >
                                        <table cellpadding="0" cellspacing="0" width="720" class="Repeater_Table">
                                            <tr style="font-weight:bold;background-color:#99ccff">
                                                <td class="Repeater_Table_Header" ><asp:Label ID="lblName" runat="server">Başlık</asp:Label></td>
                                                <td class="Repeater_Table_Header" nowrap><asp:Label ID="lblShortDescription" runat="server" >Kısa Açıklama</asp:Label></td>
                                                <td class="Repeater_Table_Header" ><asp:Label ID="lblHelpContent" runat="server" >Yardım İçeriği</asp:Label></td>
                                                <td class="Repeater_Table_Header" width="30px" align="center"><asp:Label ID="lblActions" runat="server" >İşlemler</asp:Label></td>
                                            </tr>
                                            <asp:Repeater ID="rptSections" runat="server" OnItemDataBound="rptSections_ItemdDataBound" OnItemCommand="rptSections_ItemCommand">
                                                    <ItemTemplate>
                                                        <tr>
                                                            <td class="Repeater_Table_ItemLeft">
                                                                 <asp:HiddenField ID="hfLANGCODE" runat="server" Value='<%#Eval ("LANGCODE") %>' /> 
                                                                <asp:TextBox ID="txtName" runat="server" Text='<%#Eval("SECTIONNAME") %>' CssClass="EditinputRq" Width="200"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvName"  runat="server" ControlToValidate="txtName" Display="None" ErrorMessage="Lütfen başlık giriniz"></asp:RequiredFieldValidator>
                                                            </td>
                                                            <td class="Repeater_Table_Item" >
                                                                <asp:TextBox ID="txtShortDesc" runat="server" Text='<%#Eval("SHORTDESC") %>' CssClass="Editinput" Width="200"></asp:TextBox>
                                                            </td>
                                                            <td class="Repeater_Table_Item">
                                                                <asp:HiddenField ID="hfContent" runat="server" Value='<%#Eval("CONTENTID") %>'/>
                                                                <asp:DropDownList ID="ddlContent" runat="server" Width="200" ></asp:DropDownList>
                                                            </td>
                                                            <td class="Repeater_Table_Item"  align="center">
                                                                <asp:ValidationSummary ID="vs" runat="server" DisplayMode="BulletList" Width="0px" ShowSummary="false" ShowMessageBox="true" />
                                                                <asp:LinkButton ID="btnUpdate" runat="server" CommandName="Update" CommandArgument='<%#Eval("PAGESECTIONID") %>'  >Güncelle</asp:LinkButton>
                                                            </td>
                                                        </tr>
                                                    </ItemTemplate>
                                                    <AlternatingItemTemplate>
                                                        <tr>
                                                            <td class="Repeater_Table_ItemLeft_Alternating">
                                                                 <asp:HiddenField ID="hfLANGCODE" runat="server" Value='<%#Eval ("LANGCODE") %>' /> 
                                                                <asp:TextBox ID="txtName" runat="server" Text='<%#Eval("SECTIONNAME") %>' CssClass="EditinputRq" Width="200"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvName"  runat="server" ControlToValidate="txtName" Display="None" ErrorMessage="Lütfen başlık giriniz"></asp:RequiredFieldValidator>
                                                            </td>
                                                            <td class="Repeater_Table_Item_Alternating">
                                                                <asp:TextBox ID="txtShortDesc" runat="server" Text='<%#Eval("SHORTDESC") %>' CssClass="Editinput" Width="200"></asp:TextBox>
                                                            </td>
                                                            <td class="Repeater_Table_Item_Alternating">
                                                                <asp:HiddenField ID="hfContent" runat="server" Value='<%#Eval("CONTENTID") %>'/>
                                                                <asp:DropDownList ID="ddlContent" runat="server" Width="200"></asp:DropDownList>
                                                            </td>
                                                            <td class="Repeater_Table_Item_Alternating"  align="center">
                                                                <asp:ValidationSummary ID="vs" runat="server" DisplayMode="BulletList" Width="0px" ShowSummary="false" ShowMessageBox="true" />
                                                                <asp:LinkButton ID="btnUpdate" runat="server" CommandName="Update" CommandArgument='<%#Eval("PAGESECTIONID") %>' >Güncelle</asp:LinkButton>
                                                            </td>
                                                        </tr> 
                                                    </AlternatingItemTemplate>
                                                </asp:Repeater>
                                            </table>
                                        </div>
                                        <br />
                                        <div style="width:720px;" >
                                            <a style="float:right;" href='javascript:window.close();'  class="btn_left xp_cancel">
                                                <strong class="btn_rigth_xp xp">Kapat</strong>
                                            </a>
                                        </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
